Skip to content

fix(config-flow): make manual-add pairing menu reachable (v1.1.1)#3

Merged
hrabbach merged 2 commits into
mainfrom
pr/fix-pairing-subentry-flow
Jun 25, 2026
Merged

fix(config-flow): make manual-add pairing menu reachable (v1.1.1)#3
hrabbach merged 2 commits into
mainfrom
pr/fix-pairing-subentry-flow

Conversation

@hrabbach

Copy link
Copy Markdown
Owner

Summary

The v1.1.0 "Add manually (already paired)" menu was never reachable. The subentry pairing flow was wired to async_step_blind, on the assumption that Home Assistant initiates a subentry flow at async_step_{subentry_type}. HA actually initiates user-triggered subentry flows at async_step_user (HA docs), so async_step_blind was dead code and users always landed on the old auto-pair form — on every HA version.

Changes

  • async_step_blindasync_step_user: now serves the menu (menu_options: ["pair", "manual_add"]); removed the redundant subentry async_step_menu.
  • old auto-pair async_step_userasync_step_pair (form step_id userpair).
  • strings.json + translations/{en,de,es,fr}.json: step.userstep.pair, menu_options.usermenu_options.pair; added the localized menu step to de/es/fr (it was missing entirely).
  • tests: entry-step menu test now drives async_step_user expecting the pair option; added test_pair_step_shows_form.

Verification

  • ruff check ✅ · mypy ✅ · full pytest 164 passed (WSL)

Release

Patch bump manifest.json1.1.1. After merge, tag v1.1.1 to trigger the HACS release workflow.

🤖 Generated with Claude Code

hrabbach and others added 2 commits June 26, 2026 00:08
…dd is reachable

The v1.1.0 manual-add menu was wired to async_step_blind on the false
assumption that HA initiates a subentry flow at async_step_{subentry_type}.
HA actually initiates user-triggered subentry flows at async_step_user, so
async_step_blind was never called and the old auto-pair form (async_step_user)
was always shown — the new menu was unreachable on every HA version.

- async_step_blind -> async_step_user: now serves the menu
  (menu_options ["pair", "manual_add"]); removed redundant async_step_menu.
- old auto-pair async_step_user -> async_step_pair (form step_id "pair").
- strings.json + translations/{en,de,es,fr}.json: step.user -> step.pair,
  menu_options.user -> menu_options.pair; add localized menu step to de/es/fr
  (previously missing).
- tests: entry-step menu test now calls async_step_user expecting "pair";
  add test_pair_step_shows_form.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QwPMgtiypLgJ5nkR3mUGfL
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QwPMgtiypLgJ5nkR3mUGfL
@hrabbach hrabbach merged commit b96116a into main Jun 25, 2026
1 check passed
@hrabbach hrabbach deleted the pr/fix-pairing-subentry-flow branch June 25, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant